import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/Index.vue'

export const constantRoutes: Array<any> = [
  {
    path: '/',
    component: Layout,
    name: 'dashboard',
    redirect: '/dashboard',
    meta: {
      title: "首页菜单",
      icon: "HomeFilled"
    },
    children: [
      {
        path: '/dashboard',
        component: () => import('@/view/dashboard/Index.vue'),
        name: 'dashboardIndex',
        meta: {
          title: '首页',
          icon: 'HomeFilled'
        }
      },
      {
        path: '/02ReviewBusinessMan/01projectManagement/AuditHomePage',
        component: () => import('@/view/02ReviewBusinessMan/01projectManagement/AuditHomePage.vue'),
        name: 'AuditHomePage',
        hidden:true,
        meta: {
          title: '文件详情中心',
          icon: 'HomeFilled'
        }
      }
    ]
  },
  {
    path: '/ReviewBussinessMan',
    component: Layout,
    name: 'Review_index_0',
    meta: {
      title: "审查业务管理",
      icon: "stage"
    },
    children: [
      {
        path: '/02ReviewBusinessMan/01projectManagement/index',
        component: () => import('@/view/02ReviewBusinessMan/01projectManagement/index.vue'),
        name: 'Review_index_1',
        meta: {
          title: '项目管理',
          icon: 'role'
        }
      },
      {
        path: '/02ReviewBusinessMan/02ReviewManagement/index',
        component: () => import('@/view/02ReviewBusinessMan/02ReviewManagement/index.vue'),
        name: 'Review_index_2',
        meta: {
          title: '审查管理',
          icon: 'role'
        }
      },
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/view/Login/index.vue'),
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes: constantRoutes
})
export default router